﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class m_SpecialProcurementType : DataObject
    {
        [Column]
        public string Procurement_Type { get { return _Procurement_Type; } set { _Procurement_Type = value; EntityState.FieldChange("Procurement_Type"); } }
        private string _Procurement_Type;
        public static FieldInfo procurement_type = new FieldInfo("m_SpecialProcurementType", "Procurement_Type");

        [Column]
        public string SPT { get { return _SPT; } set { _SPT = value; EntityState.FieldChange("SPT"); } }
        private string _SPT;
        public static FieldInfo spt = new FieldInfo("m_SpecialProcurementType", "SPT");

        [Column]
        public string Description { get { return _Description; } set { _Description = value; EntityState.FieldChange("Description"); } }
        private string _Description;
        public static FieldInfo description = new FieldInfo("m_SpecialProcurementType", "Description");

        [Column]
        public string Source_Plant { get { return _Source_Plant; } set { _Source_Plant = value; EntityState.FieldChange("Source_Plant"); } }
        private string _Source_Plant;
        public static FieldInfo source_plant = new FieldInfo("m_SpecialProcurementType", "Source_Plant");

        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("m_SpecialProcurementType", "Time");

        [Column]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("m_SpecialProcurementType", "Status");
    }
}
